﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;

namespace improveNetDataCollect
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        string starturl= "https://www.cnblogs.com/Jiajun/";

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            starturl = textBox1.Text;
        }

        private void startCrawl_Click(object sender, EventArgs e)
        {
            
            Crawler mycrawler = new Crawler();
            mycrawler.CrawlResult = "";
            mycrawler.urls.Add(starturl, false);
            mycrawler.crawl();
            crawlResult.Text = mycrawler.CrawlResult;
        }
    }
}
